<?php
$current_controller=$this->params['controller'];
$current_action=$this->params['action'];
?>
<div class="billing_app_header_wrp">
    <table width="100%">
        <tr valign="top">
            <td width="25%" align="center">
                <?php
                    if(($current_controller=='orders') and($current_action=='constructor'))
                    {
                        echo '
                        <div class="billing_app_logo">
                            '.$this->Html->image("7.png").'
                        </div>
                        <div class="billin_app_link">
                            Конструктор скриптов
                        </div>
                        ';
                    }
                    else
                    {
                        echo '
                        <div class="billing_app_logo">
                            '.$this->Html->image("7_inactive.png").'
                        </div>
                        <div class="billin_app_link">
                            '.$this->Html->link('Конструктор скриптов',array('controller' => 'orders', 'action' => 'constructor', 'full_base' => true)).'
                        </div>
                        ';    
                    }
                ?>
            </td>
            <td width="25%" align="center">
                <?php
                    if(($current_controller=='orders') and($current_action=='player'))
                    {
                        echo '
                        <div class="billing_app_logo">
                            '.$this->Html->image("8.png").'
                        </div>
                        <div class="billin_app_link">
                            Плееры
                        </div>
                        ';
                    }
                    else
                    {
                        echo '
                        <div class="billing_app_logo">
                            '.$this->Html->image("8_inactive.png").'
                        </div>
                        <div class="billin_app_link">
                            '.$this->Html->link('Плееры',array('controller' => 'orders', 'action' => 'player', 'full_base' => true)).'
                        </div>
                        ';    
                    }
                ?>
            </td>
            <td width="25%" align="center">
                <?php
                    if($current_controller=='publicpages')
                    {
                        echo '
                        <div class="billing_app_logo">
                            '.$this->Html->image("10.png").'
                        </div>
                        <div class="billin_app_link">
                            Публичные страницы
                        </div>
                        ';
                    }
                    else
                    {
                        echo '
                        <div class="billing_app_logo">
                            '.$this->Html->image("10_inactive.png").'
                        </div>
                        <div class="billin_app_link">
                            '.$this->Html->link('Публичные страницы',array('controller' => 'publicpages', 'action' => 'index', 'full_base' => true)).'
                        </div>
                        ';    
                    }
                ?>
            </td>
            <td width="25%" align="center">
                <?php
                    if(($current_controller=='orders') and($current_action=='api'))
                    {
                        echo '
                        <div class="billing_app_logo">
                            '.$this->Html->image("9.png").'
                        </div>
                        <div class="billin_app_link">
                            Виджеты
                        </div>
                        ';
                    }
                    else
                    {
                        echo '
                        <div class="billing_app_logo">
                            '.$this->Html->image("9_inactive.png").'
                        </div>
                        <div class="billin_app_link">
                            '.$this->Html->link('Виджеты',array('controller' => 'orders', 'action' => 'api', 'full_base' => true)).'
                        </div>
                        ';    
                    }
                ?>
            </td>
            
        </tr>
    </table>
</div>
<div class="billing_main_grey_line"></div>